package edu.ccut.titan.tag.report.chart.dataset;

import net.sf.jasperreports.charts.design.JRDesignXyzDataset;
import net.sf.jasperreports.charts.design.JRDesignXyzSeries;
import net.sf.jasperreports.engine.JRChartDataset;
import net.sf.jasperreports.engine.JRExpression;
import net.sf.jasperreports.engine.design.JRDesignExpression;
import edu.ccut.titan.tag.report.design.ChartsInfo;

public class TitanXYZDataset implements ITitanDataset {

	public JRChartDataset getDatasetContent(ChartsInfo chart) {
		JRDesignXyzDataset designXyzDataset = new JRDesignXyzDataset(null);
		JRDesignXyzSeries xyzSeries = new JRDesignXyzSeries();
		JRDesignExpression seriesExpression = new JRDesignExpression();
		seriesExpression.setValueClassName("java.lang.Object");
		seriesExpression.addFieldChunk("");
		seriesExpression.addParameterChunk("");
		seriesExpression.addResourceChunk("");
		seriesExpression.addTextChunk("");
		seriesExpression.addVariableChunk("");
		xyzSeries.setSeriesExpression(seriesExpression);
		JRDesignExpression xValueExpression = new JRDesignExpression();
		xyzSeries.setXValueExpression(xValueExpression);
		JRDesignExpression yValueExpression = new JRDesignExpression();
		xyzSeries.setYValueExpression(yValueExpression);
		JRExpression zValueExpression = new JRDesignExpression();
		xyzSeries.setZValueExpression(zValueExpression);
		designXyzDataset.addXyzSeries(xyzSeries);
		return null;
	}

}
